package com.leapcloud.crm.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author wangzhenyan
 * @date 2018/12/26下午4:12
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.leapcloud.crm")
public class ServerApplication  extends SpringBootServletInitializer {

  @Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(ServerApplication.class);
  }


  public static void main(String[] args) {
    SpringApplication.run(ServerApplication.class, args);
  }

}
